using System;
using Core.Base;
using Core.Contracts.Enums;
using Core.Contracts.Interfaces;
using Core.Extensions;
using Core.Features;
using Core.Resources;

namespace Core.Items.Robots
{
    
    public sealed class Ictus : RobotBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="T:Core.Items.Robots.Ictus"/> class.
        /// </summary>
        public Ictus()
            : base(
            "Ictus",
            Traduction.desc_ictus,
            FactionsEnum.Pelistal,
            RobotTechnologyLevel.Mk1,
            RobotSizesEnum.Mech,
            new ISlot[]
                {
                    new Slot(0,SlotGroupsEnum.Chassis,SlotTypesEnum.Misc, SizesEnum.Small|SizesEnum.Medium),
                    new Slot(1,SlotGroupsEnum.Chassis,SlotTypesEnum.Misc, SizesEnum.Small|SizesEnum.Medium),
                    new Slot(2,SlotGroupsEnum.Chassis,SlotTypesEnum.Missile, SizesEnum.Small|SizesEnum.Medium),
                    new Slot(3,SlotGroupsEnum.Chassis,SlotTypesEnum.Missile, SizesEnum.Small|SizesEnum.Medium),
                    new Slot(4,SlotGroupsEnum.Chassis,SlotTypesEnum.Missile|SlotTypesEnum.Misc, SizesEnum.Medium),
                    new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Legs, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Legs, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Legs, SlotTypesEnum.Modules)
                },
            new IFeature<object>[]
                {
                    new AccumulatorCapacity<double>(2800),
                    new AccumulatorRechargeTime<double>(480),
                    new CpuPerformance<double>(450),
                    new ReactorPerformance<double>(950),
                    new ArmorAmount<double>(1300),
                    new ChemicalResistance<double>(30),
                    new KineticResistance<double>(10),
                    new SeismicResistance<double>(45),
                    new ThermalResistance<double>(150),
                    new ChemicalEHP<double>(0),
                    new KineticEHP<double>(0),
                    new SeismicEHP<double>(0),
                    new ThermalEHP<double>(0),
                    new SurfaceHitSize<double>(7),
                    new InterferenceEmission<double>(7),
                    new InterferenceMinimum<double>(105),
                    new InterferencePeak<double>(375),
                    new InterferenceRadius<double>(200),
                    new LockingRange<double>(300),
                    new LockingTime<double>(12.50),
                    new MaximumTargets<double>(7),
                    new MissileGuidanceFailure<double>(0.1),
                    new SensorStrength<double>(100),
                    new SignalDetection<double>(100),
                    new SignalMasking<double>(100),
                    new ReloadingTime<double>(10),
                    new CargoCapacity<double>(7.5),
                    new RobotMass<double>(14850),
                    new SlopeCapacity<double>(45),
                    new TopSpeed<double>(61.20),
                    new Volume<double>(16),
                    new DemobilizerResistance<double>(0),
                    new CriticalHitChance<double>(0)
                },
            new IBonusModifier[]
                {
                    new BonusModifier<AdvancedRobotics>( FeatureTypesEnum.Module, FeaturesEnum.EnergyNeutralizerOptimal, 0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Energy neutralizers optimal range"}, 
                    new BonusModifier<AdvancedRobotics>( FeatureTypesEnum.Module, FeaturesEnum.EnergyDrainerOptimal, 0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Energy drainers optimal range"}, 
                    new BonusModifier<AdvancedRobotics>( FeatureTypesEnum.Module, FeaturesEnum.EnergyNeutralizerNeutralizedEnergy, 0.08){ Unit = UnitsEnum.Percentage, DisplayName = "Energy neutralized amount"}, 
                    new BonusModifier<SpecOpsRobotControl>( FeatureTypesEnum.Robot, FeaturesEnum.SignalMasking, 0.01){ Unit = UnitsEnum.Percentage, DisplayName = "Signal Masking Amount"},
                    new BonusModifier<AdvancedRobotics>( FeatureTypesEnum.Module, FeaturesEnum.ShieldAbsorptionRatio, 0.02){ Unit = UnitsEnum.Percentage, DisplayName = "Shield absorption"}, 
                },
            new ICondition<IExtension>[]
                {
                    new ExtensionCondition<AdvancedRobotics>(3), 
                    new ExtensionCondition<SpecOpsRobotControl>(3),
                    new ExtensionCondition<PelistalRobotControl>(7),
                })
        {
        }
    }
}